<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="l-products">
    <?php include template("content","left"); ?>
        <div class="l-right">
            <div class="partials--page-title">
                <div class="title">
                    <span class="zh"><?php echo $catname;?></span>
                    <span class="en"><?php echo $catdir;?></span>
                </div>
            </div>
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=80c12b74c463044ecdb732322367c94f&action=lists&catid=%24catid&num=9&page=%24page&order=id+DESC&siteid=%24siteid&return=picArr\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>$catid,'order'=>'id DESC','siteid'=>$siteid,'limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, $urlrule);$picArr = $content_tag->lists(array('catid'=>$catid,'order'=>'id DESC','siteid'=>$siteid,'limit'=>$offset.",".$pagesize,'action'=>'lists',));}?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
            <ul class="products">
            <?php $n=1;if(is_array($picArr)) foreach($picArr AS $pic) { ?>
                <li class="item">
                    <a class="picture" href="<?php echo $pic['url'];?>" target="_blank">
                    <img src="<?php echo $pic['thumb'];?>"></a>
                    <a class="name" href="<?php echo $pic['url'];?>" target="_blank"><?php echo $pic['title'];?></a>
                </li> 
            <?php $n++;}unset($n); ?>
                <li class="item justify-left-fix"></li> 
                <li class="item justify-left-fix"></li>
            </ul>
            <ul class="partials--pager">
                <?php echo $pages;?>
            </ul>
        </div>
    </div>
</div>
<?php include template("content","footer"); ?>